/**
 * @Author：ming
 * @Date：2023/10/2 9:39 PM
 * @Filename：Hj8
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

/**
 * @author ming
 */
public class Hj21 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str ;
        while ((str=br.readLine())!=null){
            String s = setScr(str);
            System.out.println(s);
        }
    }
    
    public static  String setScr(String s){
        char[] c = s.toCharArray();
        for (int i = 0; i < c.length; i++) {
            char temp =c[i];
            if(temp=='a'||temp=='b'||temp=='c'){
                c[i]='2';
            }else if(temp=='d'||temp=='e'||temp=='f'){
                c[i]='3';
            }else if(temp=='g'||temp=='h'||temp=='i'){
                c[i]='4';
            }else if(temp=='j'||temp=='k'||temp=='l'){
                c[i]='5';
            }else if(temp=='m'||temp=='n'||temp=='o'){
                c[i]='6';
            }else if(temp=='p'||temp=='q'||temp=='r'||temp=='s'){
                c[i]='7';
            }else if(temp=='t'||temp=='u'||temp=='v'){
                c[i]='8';
            }else if(temp=='w'||temp=='x'||temp=='y'||temp=='z'){
                c[i]='9';
            }else if(temp=='Z'){
                c[i]='a';
            }else if(temp>='A'&&temp<'Z'){
                c[i]=(char) (c[i]+33);
            }
        }
        return new String(c);
    }
}
